using System;
using System.Runtime.Serialization;

using SIMA.Core.Attributes;
using SIMA.Core.Data.Validators;
using SIMA.Core.Data.Entity;

namespace SIMA.Entities
{
	[Table("T_C_Modelo")]
	[Serializable]
	public class T_C_Modelo:XmlEntity
	{
		[DataMember]
		[PrimaryKey("Id_Modelo")]
		public short Id_Modelo{get; set;}
		[DataMember]
		[DataField("Descripcion")]
		public string Descripcion{get; set;}
		[DataMember]
		[DataField("Año")]
		[Numeric]
		public int Año{get; set;}
		[DataMember]
		[ForeignKey("Id_Marca")]
		[Numeric]
		public int Id_Marca{get; set;}
	}
}
